﻿<UserControl x:Class="YouTubePlaylist.Views.PlaylistCategoryCtrl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input">
    <UserControl.Resources>
        <Style x:Name="HeaderStyle" TargetType="TextBlock">
            <Setter Property="FontSize" Value="16"/>
        </Style>
        <Style x:Name="NoteStyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="LightSalmon"/>
            <Setter Property="FontSize" Value="10"/>
        </Style>
    </UserControl.Resources>
    <StackPanel>
        <TextBlock Style="{StaticResource HeaderStyle}" Text="Please enter the playlist's category." TextWrapping="Wrap"/>
        <Border BorderBrush="Black" CornerRadius="10" BorderThickness="2" Margin="8" Padding="8">
            <StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Width="75" Text="Video Type:" VerticalAlignment="Center" Margin="0,0,4,0"/>
                    <Controls:AutoCompleteBox x:Name="Category" Width="300" Margin="4,0,0,0"
                                              FilterMode="Contains"
                                              ItemsSource="{Binding Categories}"/>
                </StackPanel>
                <TextBlock Width="400" TextWrapping="Wrap" Style="{StaticResource NoteStyle}" VerticalAlignment="Center"
                   Text="The video type is used when populating tracks and retrieving music videos. Common categories are 'karaoke', 'live', etc. No category is used by default." />
            </StackPanel>
        </Border>
    </StackPanel>
</UserControl>
